import axios from './https'
let baseUrl = process.env.NODE_ENV == 'development' ? '/api' : ''

export const logoutAxios = ()=>axios(baseUrl +'/logout')

//被服
export const clothKsAxios=()=>axios(baseUrl+'/clothes/weaving/ks/lis')
export const clothInfoAxios=(addr)=>axios(
    baseUrl+'/clothes/weaving/info',
    {addr:addr}
)
export const clothOrderAxios=(data)=>axios(
    baseUrl+'/clothes/weaving/order',
    data,
    'POST'
)
/*"ctime"`
 "order_time"`
 "key"`*/
export const clothLisAxios=(data)=>axios(
    baseUrl+'/clothes/weaving/order/lis',
    data,
    'POST'
)
export const clothTimeAxios=()=>axios(
    baseUrl+'/clothes/weaving/stime'
)
export const clothModAxios=(data)=>axios(
    baseUrl+'/clothes/weaving/order/mod',
    data,
    'POST'
)
/*
* `json:"id"`
 `json:"des"`
 `json:"wname"`
 `json:"wsize"`
* */
export const clothModLogAxios=(data)=>axios(
    baseUrl+'/clothes/weaving/order/log',
    data,
    'POST'
)
/*
 `json:"id"`
 `json:"wname"`
 `json:"wsize"`
* */
export const sizeLogAxios=(data)=>axios(
    baseUrl+'/clothes/weaving/order/ww',
    data,
    'POST'
)

//szy de 检查是否默认密码
export const getMyPswStatu = ()=>axios(baseUrl+'/my/pwd')